package org.kiwi.data.vo;

import org.kiwi.data.sharding.TableShardingStrategy;

/**
 * Created by jack on 16/12/22.
 */
public class TableShardingParameter<T> {

    private String strategyName;
    private T shardingParameter;
    private TableShardingStrategy<T> tableShardingStrategy;

    public TableShardingParameter(String strategyName, T shardingParameter, TableShardingStrategy<T> tableShardingStrategy) {
        this.strategyName = strategyName;
        this.shardingParameter = shardingParameter;
        this.tableShardingStrategy = tableShardingStrategy;
    }

    public String getStrategyName() {
        return this.strategyName;
    }

    public T getShardingParameter() {
        return this.shardingParameter;
    }

    public TableShardingStrategy<T> getTableShardingStrategy() {
        return this.tableShardingStrategy;
    }
}
